(function () {
  function reSize () {
    const baseFontSize = 100
    const designWidth = 750
    const width = window.innerWidth
    const currentFontSize = (width / designWidth) * baseFontSize
    document.querySelector('html').style.fontSize = currentFontSize + 'px'
  }
  window.onresize = function () {
    reSize()
  }
})()
